<template>
  <div class="card">
    <div class="card-top">
      <div class="title">{{ title }}</div>
      <div class="action">
        <slot name="action"></slot>
      </div>
    </div>
    <div class="card-content">
      <slot></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: "Card",
  props: {
    title: String
  },
  data: () => {
    return {};
  },
  methods: {},
  mounted: function() {}
};
</script>
<style lang="scss" scoped>
.card {
  background-color: #252735;
  border-radius: 10px;
  width: 100%;
  overflow: hidden;
  .card-top {
    box-shadow: 5px 2px 12px rgba(0, 0, 0, 0.25);
    width: 100%;
    height: 50px;
    padding: 0 20px;
    background-color: #303244;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .title {
      font-size: 16px;
      color: #fff;
    }
  }
  .card-content {
  }
}
</style>
